
import { API_CONFIG } from "../config/index.js";
import request from './index.js'
// StatefulSet操作
export const getStatefulSetListHandler = (clusterId,namespace) => {
    return request(API_CONFIG.getStatefulSetListApi, {clusterId,namespace}, "get", 2000)
}

export const deleteStatefulSetHandler = (clusterId,namespace,name) => {
    return request(API_CONFIG.deleteStatefulSetApi, {clusterId,namespace,name}, "post", 2000)
}

export const createStatefulSetHandler = (data) => {
    return request(API_CONFIG.createStatefulSetApi, data, "post", 2000)
}

export const updateStatefulSetHandler = (data) => {
    return request(API_CONFIG.updateStatefulSetApi, data, "post", 2000)
}

export const getStatefulSetDetailHandler = (data) => {
    return request(API_CONFIG.getStatefulSetApi, data, "get", 3000)
}